#include "stdio.h"
#include "string.h"
void huanxu(int a[],int sz)
{
int i;
int j;
int sum = 0;
for(i = 0;i < sz - 1; i++)
{
for (j = 0;j < sz - 1; j++)
if(a[j] < a[j+1])
{
sum = a[j];
a[j] = a[j+1];
a[j+1] = sum;
}
}
}

int main()
{
    int m;
int arr[]={8,9,7,5,6,4,3,2,1};
  int  sz = sizeof(arr) / sizeof(arr[0]);
huanxu(arr,sz);
for (m = 0;m < sz;m++)
{
printf ("%d ",arr[m]);
}
}